package com.anti.core.utils;
import com.github.yitter.contract.IdGeneratorOptions;
import com.github.yitter.idgen.YitIdHelper;

/**
 * @Description 订单流水号生成工具类
 * @Author anTi
 * @Date 2021-4-15
 */
public class IdFlowingUtil {
    public  static String getSnowflakesId(String busType){
        IdGeneratorOptions options = new IdGeneratorOptions((short) 1);
        YitIdHelper.setIdGenerator(options);
        String newId = busType+YitIdHelper.nextId();
        return newId;
    }
}
